package com.sciencep.pro.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Sciencep
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class ProAssignment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目ID
     */
    @TableField("proId")
    private Long proId;

    /**
     * 节点ID
     */
    @TableField("nodeId")
    private String nodeId;

    /**
     * 节点周期开始
     */
    @TableField("nodeStart")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date nodeStart;

    /**
     * 节点周期结束
     */
    @TableField("nodeEnd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date nodeEnd;

    /**
     * 用户ID
     */
    @TableField("userId")
    private String userId;

    /**
     * 项目角色ID
     */
    @TableField("proroleId")
    private Long proroleId;

    /**
     * 投入方式
     */
    @TableField("inputType")
    private Integer inputType;

    /**
     * 投入开始
     */
    @TableField("inputStart")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date inputStart;

    /**
     * 投入结束
     */
    @TableField("inputEnd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date inputEnd;

    /**
     * 累计投入
     */
    @TableField("inputHours")
    private Float inputHours;

    /**
     * 查看状态
     */
    @TableField("readType")
    private Integer readType;

    /**
     * 评审id
     */
    @TableField("reviewId")
    private String reviewId;

    /**
     * 评审name
     */
    @TableField("reviewName")
    private String reviewName;


}
